# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-pycups
_pkgname=pycups
pkgver=1.9.74
pkgrel=4
pkgdesc='Python bindings for libcups.'
url='https://pypi.org/project/pycups/#files'
arch=('x86_64' 'aarch64')
license=('GPL')
depends=('python2' 'libcups')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.bz2")
sha512sums=('a0681634da5c80590ebefde5ae7243558dae94744700e177bf5d2368f6de5437f4e770eb3f0d0bc69fb76c17482ad7e4dfd017eba13123581b4eba657fd57e5e')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

